{"ast":null,"code":"import * as React from 'react';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport warning from '../_util/warning';\nfunction filter(items) {\n  return items.filter(function (item) {\n    return item;\n  });\n}\nexport default function useLegacyItems(items, children) {\n  if (items) {\n    return items;\n  }\n  process.env.NODE_ENV !== \"production\" ? warning(!children, 'Steps', 'Step is deprecated. Please use `items` directly.') : void 0;\n  var childrenItems = toArray(children).map(function (node) {\n    if ( /*#__PURE__*/React.isValidElement(node)) {\n      var props = node.props;\n      var item = Object.assign({}, props);\n      return item;\n    }\n    return null;\n  });\n  return filter(childrenItems);\n}","map":{"version":3,"names":["React","toArray","warning","filter","items","item","useLegacyItems","children","process","env","NODE_ENV","childrenItems","map","node","isValidElement","props","Object","assign"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/steps/useLegacyItems.js"],"sourcesContent":["import * as React from 'react';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport warning from '../_util/warning';\nfunction filter(items) {\n  return items.filter(item => item);\n}\nexport default function useLegacyItems(items, children) {\n  if (items) {\n    return items;\n  }\n  process.env.NODE_ENV !== \"production\" ? warning(!children, 'Steps', 'Step is deprecated. Please use `items` directly.') : void 0;\n  const childrenItems = toArray(children).map(node => {\n    if ( /*#__PURE__*/React.isValidElement(node)) {\n      const {\n        props\n      } = node;\n      const item = Object.assign({}, props);\n      return item;\n    }\n    return null;\n  });\n  return filter(childrenItems);\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,OAAO,MAAM,6BAA6B;AACjD,OAAOC,OAAO,MAAM,kBAAkB;AACtC,SAASC,MAAM,CAACC,KAAK,EAAE;EACrB,OAAOA,KAAK,CAACD,MAAM,CAAC,UAAAE,IAAI;IAAA,OAAIA,IAAI;EAAA,EAAC;AACnC;AACA,eAAe,SAASC,cAAc,CAACF,KAAK,EAAEG,QAAQ,EAAE;EACtD,IAAIH,KAAK,EAAE;IACT,OAAOA,KAAK;EACd;EACAI,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGR,OAAO,CAAC,CAACK,QAAQ,EAAE,OAAO,EAAE,kDAAkD,CAAC,GAAG,KAAK,CAAC;EAChI,IAAMI,aAAa,GAAGV,OAAO,CAACM,QAAQ,CAAC,CAACK,GAAG,CAAC,UAAAC,IAAI,EAAI;IAClD,KAAK,aAAab,KAAK,CAACc,cAAc,CAACD,IAAI,CAAC,EAAE;MAC5C,IACEE,KAAK,GACHF,IAAI,CADNE,KAAK;MAEP,IAAMV,IAAI,GAAGW,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEF,KAAK,CAAC;MACrC,OAAOV,IAAI;IACb;IACA,OAAO,IAAI;EACb,CAAC,CAAC;EACF,OAAOF,MAAM,CAACQ,aAAa,CAAC;AAC9B"},"metadata":{},"sourceType":"module"}